package cn.fj.data.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TypeQuery {
    //当前页
    private Integer currentPage = 1;
    //每页显示的条数
    private Integer pageSize = 5;

    //高级查询
    private  String keyword;

    //通过属性取到分页方法
    public Integer getStart() {

        return (this.currentPage - 1) * this.pageSize;
    }
}
